

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class NewsWidget extends StatefulWidget {
  const NewsWidget({Key? key}) : super(key: key);

  @override
  State<NewsWidget> createState() => _NewsWidgetState();
}

class _NewsWidgetState extends State<NewsWidget> {
  @override
  Widget build(BuildContext context) {
    return Container(
      margin: EdgeInsets.only(top: 5.h),
      padding: EdgeInsets.only(left: 10.w),
      height: 50.h,
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        children: [
          Row(
            children: [
              Text(
                "新闻头条",
                style: TextStyle(
                  color: Colors.blue[300],
                  fontSize: 14,
                  fontWeight: FontWeight.bold,
                ),
              ),
              Icon(
                Icons.terrain,
                color: Colors.yellow,
                size: 32,  
              ),
              Text('关于我行降低微小企业和个体...',
                style: TextStyle(fontSize: 12),
              )
            ],
          ),
          Row(
            children:[
              Icon(
                Icons.lens,
                color: Colors.red,
                size: 12,
              ),
              Text('更多',style: TextStyle(fontSize:12,height: 1)),
              Icon(Icons.chevron_right)
            ]
          )
        ],
      ),
    );

    
  }
}